<?php ob_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
	<head>
	<?php
            $dbClass = new Database();
            $dbClass->connect();

            $htmlClass = new HTMLFunctions();
            $pagesClass = new Pages();
            $ctgClass = new Categories();
            $nlClass = new Newsletter();
            $setClass = new Settings();
            $zoneClass = new Zones();
            $modClass = new Modules();
            $newsClass = new News();
            $topClass = new Top();
            $picClass = new SLCPicture();
            $offersClass = new Offers();
            $pdfClass = new PDF();
	?>
	<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
	<title>Administration - <?php echo SITE_NAME;?></title>
	
	<!-- JQuery & JQuery UI -->
	<script type="text/javascript" src="../includes/jquery.js"></script>
	<script type="text/javascript" src="../includes/jquery-ui-1.8.10.custom.min.js"></script>
	
	<!-- JQuery TABLE SORTER & PAGER -->
	<script type="text/javascript" src="../includes/jquery.tablesorter.min.js"></script>
	<script type="text/javascript" src="../includes/jquery.tablesorter.pager.js"></script>
	
	<!-- FILE MANAGER -->
	<link rel="stylesheet" href="modules/filemanager/js/ui-themes/base/ui.all.css" />
	<script src="modules/filemanager/js/elfinder.min.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="modules/filemanager/css/elfinder.css" type="text/css" media="screen" charset="utf-8">
	
	<!-- JQuery dialog -->
	<script type="text/javascript" src="../includes/jqdialog.min.js"></script>
	<link rel="stylesheet" href="../templates/default/admin/jqdialog.css" />
			
	<!-- CSS -->
	<link rel="stylesheet" href="../templates/default/admin/style.css" />
	<link rel="stylesheet" href="../templates/default/admin/jquery-ui-1.8.10.custom.css" />
        <link rel="stylesheet" href="../templates/default/admin/tab-view.css" />
	
	
	<script type="text/javascript">
	$(document).ready(function() { 
	    $("#a_page_table") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pager")});
	}); 

	$(document).ready(function() { 
	    $("#a_page_tableNL") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pagerNL")});
	});

	$(document).ready(function() { 
	    $("#a_page_tableC") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pagerC")});
	});

	$(document).ready(function() { 
	    $("#a_page_tableO") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pagerO")});
	});

	$(document).ready(function() { 
	    $("#a_page_tableN") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pagerN")});
	});

	$(document).ready(function() { 
	    $("#a_page_tableT") 
	    .tablesorter({widthFixed: true, widgets: ['zebra']}) 
	    .tablesorterPager({container: $("#pagerT")});
	});

	$(function() {
            $( "#datepickerstart" ).datepicker({
                showOn: "button",
                buttonImage: "../templates/default/admin/images/calendar.gif",
                buttonImageOnly: true
            });
	});

	$(function() {
            $( "#datepickerend" ).datepicker({
                showOn: "button",
                buttonImage: "../templates/default/admin/images/calendar.gif",
                buttonImageOnly: true
            });
	});

	$(document).ready(function(){
            $('#my-div').elfinder({
                url : 'modules/filemanager/connectors/php/connector.php',
                lang : 'en'
            });
	});
	</script>
	</head>
    <body><a name="top"/>
        <div class="premenu">
            <b>ADMINISTRARE Daimtour</b>
            <div style="float:right;clear:right;">
                <?php
                $lquery = mysql_query("select * from dt_users where username = '".$_SESSION['username']."'");
                $lrow = mysql_fetch_array($lquery);
                ?>
                Logat ca: <?php echo $_SESSION['username']?>
                <a class="menutop" href="logout.php">Logout</a>
                <a class="menutop" href="index.php?p=editProfile&id=<?php echo $lrow['id']?>">Editare profil</a>
                <a class="menutop" href="index.php?p=addNewUser">Adauga user</a>
            </div>
        </div>
    <!-- menu -->
    <div class="meniu_top">
        <a class="menutop" href="index.php?p=acasa">Home</a>
        
        <!-- categorii -->
        <?php
            $ctgMenu = mysql_query("Select * from dt_categories");
            while ($cmRow = mysql_fetch_array($ctgMenu)){
                $ctgName = $cmRow['c_title'];
                $cid = $cmRow['c_id'];
                echo "<a class=\"menutop\" href=\"index.php?p=categ&cid=$cid\">$ctgName</a>";
            }
        ?>
        <br/>
        <a class="menutop" href="index.php">Home</a>
        <a class="menutop" href="index.php?p=categories">Categorii</a>
        <a class="menutop" href="index.php?p=pages">Pagini</a>
        <a class="menutop" href="index.php?p=newsletter">Newsletter</a>
        <a class="menutop" href="index.php?p=settings">Setari</a>
        <a class="menutop" href="index.php?p=sitemap">Sitemap</a>
        <a class="menutop" href="index.php?p=fileManager">Manager&nbsp;fisiere</a>
        <a class="menutop" href="index.php?p=offers">Oferte</a>
        <a class="menutop" href="index.php?p=news">Stiri</a>
        <!-- <a id="a_menu_link" href="index.php?p=zones">Zone</a> -->
        <a class="menutop" href="index.php?p=modules">Module</a>
        <a class="menutop" href="index.php?p=header">Header</a>
        <a class="menutop" href="index.php?p=pdf">PDF&nbsp;Manager</a>
    </div>